package cn.org.qary.service.impl.rking;

import cn.org.qary.entity.AddressInfo;
import cn.org.qary.service.impl.BaseServiceImpl;
import cn.org.qary.service.trait.rking.AddressInfoService;
import org.springframework.stereotype.Service;

@Service
public class AddressInfoServiceImpl extends BaseServiceImpl<AddressInfo> implements AddressInfoService {
    @Override
    public AddressInfo getFirstOne(Integer userId) {
        AddressInfo addressInfo = new AddressInfo();
        addressInfo.setUserId(userId);
        return mapper.selectOne(addressInfo);
    }
}
